package org.wyf.EveryPoint.crowd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 项目表 Entity
 *
 * @author wyf
 * @date 2021-04-09 16:56:53
 */
@Data
@TableName("t_project")
public class Project {

    public final static String COVER_IMG_URL = "material/cover/";
    public final static String AD_IMG_URL = "material/ad/";
    public final static String BANNER_IMG_URL = "material/banner/";
    public final static String DETAIL_IMG_URL = "material/detail/";
    /**
     *
     */
    @TableId(value = "project_id", type = IdType.AUTO)
    private Long projectId;

    /**
     * 项目标题
     */
    @TableField("title")
    private String title;

    /**
     * 项目类别
     */
    @TableField("type")
    private String type;

    /**
     * 项目短标题
     */
    @TableField("short_title")
    private String shortTitle;

    /**
     * 项目简介
     */
    @TableField("introduce")
    private String introduce;
    /**
     * 众筹创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 众筹开始时间
     */
    @TableField("fund_begin")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date fundBegin;

    /**
     * 众筹结束时间
     */
    @TableField("fund_end")
    private Date fundEnd;

    /**
     * 目标金额
     */
    @TableField("goal")
    private Long goal;

    /**
     * 已筹集的金额
     */
    @TableField("raise_goal")
    private Long raiseGoal;
    /**
     * 详情介绍
     */
    @TableField("detail")
    private String detail;

    /**
     * 发起人
     */
    @TableField("uid")
    private Long uid;

    /**
     * 点击量
     */
    @TableField("hit_times")
    private Long hitTimes;

    /**
     * 封面
     */
    @TableField("cover")
    private String cover;

    /**
     * 广告小图
     */
    @TableField("ad")
    private String ad;

    /**
     * 视频资源
     */
    @TableField("video")
    private String video;

    /**
     * 若是热门上首页轮播
     */
    @TableField("banner")
    private String banner;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 状态
     */
    @TableField("state")
    private Integer state;


    /**
     * 提交次数
     */
    @TableField("submit_count")
    private Integer submitCount;

    /**
     *
     */
    @TableField(exist = false)
    private Boolean collectionFlag;

}
